using System.Data.Entity;
using Abs.Core.DAL.EntityFramework;

namespace Abs.Core.DAL.SetUpDatabase
{
    internal partial class AbsInitializer :DropCreateDatabaseIfModelChanges<AbsContext>
    {
        protected override void Seed(AbsContext absContext)
        {
            var levels = this.IntializeLevels(absContext);
            var days = this.InitializeDays(absContext);
            var rooms = this.InitializeRooms(absContext);
            var users = this.InitializeUsers(levels, absContext);

            this.InitializeRoomSchedule(days, rooms, absContext);
            this.InitializeAppointments(users, rooms, absContext);

            this.InitializeStoredProcedure(absContext);

            //Blog
            this.InitializeStatus(absContext);
            this.InitializeCategory(absContext);
            this.InitializePost(absContext);
            this.InitializeComments(absContext);
        }//end of protected override void Seed(AbsContext absContext)
    }//end of public class AbsInitializer :DropCreateDatabaseIfModelChanges<AbsContext>
}//end  of namespace